import request from '@/utils/request'

// 查询经费信息列表
export function listFunding(query) {
  return request({
    url: '/fundingSys/funding/list',
    method: 'get',
    params: query
  })
}

// 查询经费信息详细
export function getFunding(id) {
  return request({
    url: '/fundingSys/funding/' + id,
    method: 'get'
  })
}

// 新增经费信息
export function addFunding(data) {
  return request({
    url: '/fundingSys/funding',
    method: 'post',
    data: data
  })
}

// 修改经费信息
export function updateFunding(data) {
  return request({
    url: '/fundingSys/funding',
    method: 'put',
    data: data
  })
}

// 删除经费信息
export function delFunding(id) {
  return request({
    url: '/fundingSys/funding/' + id,
    method: 'delete'
  })
}
